import {mockBrandData} from '@/api'
const actions = {
    // 获取品牌列表
    async getBrandList({ commit},{limit,page}){
        const result = await mockBrandData(limit,page)
        commit('GETBRANDLIST',result.data)
    }
}
const mutations = {
    GETBRANDLIST(state,value){
       state.BrandData = value || {}
    }
}
const state = {
    BrandData:[]
}
export default {
    actions,
    mutations,
    state,
}